<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打开一个新窗口并控制其外观</title>
</head>

<body>
    <input type="button" value="打开窗口" onclick="open_win()">
    <script>
        function open_win() {
            window.open("http://www.runoob.com", "_blank", "toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400");
        }
    </script>
</body>

</html>